package com.allwees.bs.core.model.order.entity;

import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.math.BigDecimal;
import java.util.Date;

@Accessors(chain = true)
@Data
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
public class ErpBaseOrderSku extends BaseEntity {

    @Column(length = 48, updatable = false)
    protected String supplierUuid;

    @Column(length = 48, updatable = false)
    protected String retailerUuid;

    @Column(length = 48, updatable = false)
    protected String storeUuid;

    /** 批次号 **/
    @Column(updatable = false)
    protected String batchNo;

    /** 编号 **/
    @Column(updatable = false)
    protected String no;

    /** order uuid **/
    @Column(length = 48, updatable = false)
    protected String orderUuid;

    /** order no **/
    @Column(updatable = false)
    protected String orderNo;

    /** order 生效时间  **/
    protected Date orderTakeEffectAt;

    /** oms order item uuid **/
    @Column(length = 48, updatable = false)
    protected String orderItemUuid;

    @Column(updatable = false)
    protected String orderItemNo;

    /** sku uuid **/
    @Column(length = 48, updatable = false)
    protected String skuUuid;

    /** sku no **/
    @Column(updatable = false)
    protected String skuPhotos;

    /** sku no **/
    @Column(updatable = false)
    protected String skuNo;

    /** sku custom no **/
    @Column(updatable = false)
    protected String skuCustomNo;

    /** sku 下单 数量**/
    protected Integer quantity;

    /** sku quantity **/
    protected BigDecimal amt;

    /** sku 供货单价 **/
    @Column(precision = 8, scale = 2)
    protected BigDecimal supplyPrice;
}
